package com.study.app.domain.bo;

import com.study.common.core.validate.AddGroup;
import com.study.common.core.validate.EditGroup;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * 用户紧急联系人业务对象 app_user_emergency
 *
 * @author magicyo
 * @date 2023-11-29
 */

@Data
public class AppUserEmergencyBo {

    /**
     * Id
     */
    @NotNull(message = "Id不能为空", groups = { EditGroup.class })
    private Long id;

    /**
     * 关联用户ID
     */
//    @NotNull(message = "关联用户ID不能为空", groups = { AddGroup.class, EditGroup.class })
    private Long userId;

    /**
     * 紧急联系人姓名
     */
    @NotBlank(message = "紧急联系人姓名不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 紧急联系人电话
     */
    @NotBlank(message = "紧急联系人电话不能为空", groups = { AddGroup.class, EditGroup.class })
    private String phone;


}

